package pers.cj.pdos.mapper;

import org.apache.ibatis.annotations.Param;
import pers.cj.pdos.entity.JoinSplit;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import pers.cj.pdos.vo.JoinSplitVo;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 拆卸后的价格要高于原价格
 Mapper 接口
 * </p>
 *
 * @author chenj
 * @since 2019-11-04
 */
public interface JoinSplitMapper extends BaseMapper<JoinSplit> {
    List<JoinSplitVo> listVo(@Param("companyId") String companyId,
                             @Param("page") Integer page,
                             @Param("limit") Integer limit,
                             @Param("close") Boolean close,
                             @Param("search") String search,
                             @Param("no") String no,
                             @Param("goodsName") String goodsName,
                             @Param("remark") String remark,
                             @Param("date1")Date date1,
                             @Param("date2")Date date2,
                             @Param("oldStoreId")String oldStoreId,
                             @Param("newStoreId")String newStoreId,
                             @Param("userStoreId") String userStoreId,
                             @Param("userId") String userId,
                             @Param("makeTime1") Date makeTime1,
                             @Param("makeTime2")Date makeTime2,
                             @Param("oldHouseId")String oldHouseId,
                             @Param("newHouseId")String newHouseId,
                             @Param("makeUserId") String makeUserId);

    Long count(@Param("companyId")String companyId,
               @Param("close") Boolean close,
               @Param("search") String search,
               @Param("no") String no,
               @Param("goodsName") String goodsName,
               @Param("remark") String remark,
               @Param("date1")Date date1,
               @Param("date2")Date date2,
               @Param("oldStoreId")String oldStoreId,
               @Param("newStoreId")String newStoreId,
               @Param("userStoreId") String userStoreId,
               @Param("userId") String userId,
               @Param("makeTime1") Date makeTime1,
               @Param("makeTime2")Date makeTime2,
               @Param("oldHouseId")String oldHouseId,
               @Param("newHouseId")String newHouseId,
               @Param("makeUserId") String makeUserId);

    JoinSplitVo getVoById(@Param("id") String id);

    List<JoinSplitVo> listVoByIds(@Param("ids") List<String> ids);
}
